import {request} from "../../request";

export function getSkuById(id){
    return request({
        url:`/lswms/sku/${id}`,
        method:'get'
    })
}


export function getSkuByCode(sku){
    return request({
        url:`/lswms/sku/getSkuByCode`,
        method:'post',
		data:sku
    })
}


export function getSkuList(data){
    return request({
        url:'/lswms/sku/page',
        method:'put',
        data:data
    })
}

export function putSku(data){
    return request({
        url:'/lswms/sku',
        method:'put',
        data:data
    })
}
export function postSku(data){
    return request({
        url:'/lswms/sku',
        method:'post',
        data:data
    })
}

export function deleteSku(data){
    return request({
        url:`/lswms/sku`,
        method:'delete',
        data:data
    })
}
export function exportSku(data){
    return request({
        url:`/lswms/sku/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function importExcel(data) {
    return request({
        url:`/lswms/sku/importExcel`,
        method:'post',
        data:data,

    })
}
